Skip to content

Fix Rust sui-order-signing example compile error (#14)#15

Open
pymongo wants to merge 1 commit intofireflyprotocol:mainfrom
pymongo:main
Open

Fix Rust sui-order-signing example compile error (#14)#15
pymongo wants to merge 1 commit intofireflyprotocol:mainfrom
pymongo:main

Conversation

@pymongo
Copy link

@pymongo pymongo commented Jul 1, 2024

error[E0308]: mismatched types
    --> src/order.rs:68:24
     |
68   |         bcs_bytes.push(bcs_byte);
     |                   ---- ^^^^^^^^ expected `u8`, found `u64`
     |                   |
     |                   arguments to this method are incorrect

bcs_bytes.push(bcs_byte as u8);
bcs_bytes.push(bcs_byte);

the line bcs_bytes.push(bcs_byte); is duplicate and redundant, I delete this line in my PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant